import { BaseEntity } from 'src/common/base.entity'
import { Column, Entity, ManyToOne } from 'typeorm'
import { User } from './user.entity'

@Entity()
export class Address extends BaseEntity {
  @Column()
  recipient: string

  @Column()
  contact: string

  @Column()
  address: string

  @Column({ nullable: true })
  remark?: string

  @ManyToOne(() => User)
  user: User
}
